// 项目总入口
package main

import (
	"github.com/gin-gonic/gin"
	"scaffold-demo/config"
	"scaffold-demo/middlewares/jwtauth"
	"scaffold-demo/routers"
)

func main() {
	r := gin.Default()         //创建默认引擎
	r.Use(jwtauth.JWTAuth)     //中间件验证所有路由，登录、登出不验证
	routers.RegisterRouters(r) //将引擎传送给路由组件
	r.Run(config.Port)

}
